package com.headfirst.learning.duck;

import com.headfirst.learning.duck.behavior.impl.FlyWitchSwing;
import com.headfirst.learning.duck.behavior.impl.Quack;

/**
 * Created by IntelliJ IDEA.
 * User: IBM
 * Date: 2008-3-27
 * Time: 18:04:09
 * To change this template use File | Settings | File Templates.
 */
public class RedHeadDuck extends Duck {
    public RedHeadDuck() {
        flyBehavior = new FlyWitchSwing();
        quackBehavior = new Quack();
    }

    public static void main(String[] args) {
        RedHeadDuck duck = new RedHeadDuck();
        duck.quack();
    }
}
